﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Service;
using Model;

namespace Manager
{
    /// <summary>
    /// Report_TB_Age业务逻辑
    /// 创建人：Wilson
    /// 创建时间：2013-1-29  
    /// </summary>
    public class Report_TB_AgeManager
    {
        			
        #region##通过主键ID得到Report_TB_Age
        /// <summary>
        /// 功能：通过ID得到Report_TB_Age
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29   
        /// </summary>
        /// <param name="">主键ID</param>
        /// <returns></returns>
        public Report_TB_Age GetById(decimal guid3)
        {            
            using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.GetById(guid3);
			}
        }
        #endregion
		
		#region##通过主键ID删除Report_TB_Age
        /// <summary>
        /// 功能：通过主键ID删除Report_TB_Age
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29   
        /// </summary>
        /// <param name="">主键ID</param>
        /// <returns></returns>
		public int DeleteById(decimal guid3)
		{
			using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.DeleteById(guid3);
			}
		}
		#endregion			
		
        #region##添加Report_TB_Age
        /// <summary>
        /// 功能：添加Report_TB_Age
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public int Add(Report_TB_Age report_tb_age)
        {
            using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.Add(report_tb_age);
			}
        }
        #endregion
		
		#region##得到Report_TB_Age集合
		/// <summary>
        /// 功能：得到Report_TB_Age集合
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>       
        /// <returns></returns>
		public IList<Report_TB_Age> GetList()
		{
		    using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.GetList();
			}
		}
		#endregion
		
		#region##修改Report_TB_Age
        /// <summary>
        /// 功能：修改Report_TB_Age
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public int ModReport_TB_Age(Report_TB_Age report_tb_age)
        {
            using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.ModReport_TB_Age(report_tb_age);
			}
        }
        #endregion
		
		#region##统计Report_TB_Age
		/// <summary>
        /// 修改Report_TB_Age
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
		public int SelectCount()
		{
			using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.SelectCount();
			}
		}
        /// <summary>
        /// 修改Report_TB_Age
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public int SelectCountById()
        {
            using (Report_TB_AgeService ws = new Report_TB_AgeService())
			{
				return ws.SelectCountById();
			}
        }
		#endregion
        #region##自定义Report_TB_Age
        #endregion
    }
}